<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: ConstantSimpleConstMapping Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00055.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">ConstantSimpleConstMapping Class Reference<div class="ingroups"><a class="el" href="a00519.html">mapping - classes representing mathematical mappings</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ConstantSimpleConstMapping" --><!-- doxytag: inherits="SimpleConstMapping" -->
<p>Represents a constant mathematical mapping (f(x) = c)  
 <a href="a00055.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00300_source.html">MappingUtils.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ConstantSimpleConstMapping:</div>
<div class="dyncontent">
<div class="center"><img src="a00655.png" border="0" usemap="#ConstantSimpleConstMapping_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ConstantSimpleConstMapping:</div>
<div class="dyncontent">
<div class="center"><img src="a00656.png" border="0" usemap="#ConstantSimpleConstMapping_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00657.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab15070ead8f2bf11b97432caece79c3f"></a><!-- doxytag: member="ConstantSimpleConstMapping::ConstantSimpleConstMapping" ref="ab15070ead8f2bf11b97432caece79c3f" args="(const DimensionSet &amp;dims, argument_value_cref_t val)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>ConstantSimpleConstMapping</b> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;dims, argument_value_cref_t val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefcb7fda17307a6362adcab3c288be39"></a><!-- doxytag: member="ConstantSimpleConstMapping::ConstantSimpleConstMapping" ref="aefcb7fda17307a6362adcab3c288be39" args="(const DimensionSet &amp;dims, const Argument &amp;key, argument_value_cref_t val)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>ConstantSimpleConstMapping</b> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;dims, const <a class="el" href="a00013.html">Argument</a> &amp;key, argument_value_cref_t val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd05667320c3bebe7d8e767507d41809"></a><!-- doxytag: member="ConstantSimpleConstMapping::ConstantSimpleConstMapping" ref="abd05667320c3bebe7d8e767507d41809" args="(const ConstantSimpleConstMapping &amp;o)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>ConstantSimpleConstMapping</b> (const <a class="el" href="a00055.html">ConstantSimpleConstMapping</a> &amp;o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual argument_value_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00055.html#a64ad8ca116f9a3f0ea575954f43a6706">getValue</a> (const <a class="el" href="a00013.html">Argument</a> &amp;) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of the mapping at the passed position.  <a href="#a64ad8ca116f9a3f0ea575954f43a6706"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ef566da7c09d971a3f26689083056bc"></a><!-- doxytag: member="ConstantSimpleConstMapping::getValue" ref="a3ef566da7c09d971a3f26689083056bc" args="() const " -->
argument_value_cref_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00055.html#a3ef566da7c09d971a3f26689083056bc">getValue</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of this constant mapping. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63d0eab4f014a7d8094544c0dca5d7f7"></a><!-- doxytag: member="ConstantSimpleConstMapping::setValue" ref="a63d0eab4f014a7d8094544c0dca5d7f7" args="(argument_value_cref_t val)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00055.html#a63d0eab4f014a7d8094544c0dca5d7f7">setValue</a> (argument_value_cref_t val)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of this constant mapping. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00055.html#a63f15a3fb6da788dbaaeb8b1ee5470f2">constClone</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a clone of this mapping.  <a href="#a63f15a3fb6da788dbaaeb8b1ee5470f2"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa62373ce847f05e4d13c97ca420f3f73"></a><!-- doxytag: member="ConstantSimpleConstMapping::value" ref="aa62373ce847f05e4d13c97ca420f3f73" args="" -->
argument_value_t&#160;</td><td class="memItemRight" valign="bottom"><b>value</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Represents a constant mathematical mapping (f(x) = c) </p>
<p>Returns the same value for every point in any dimension.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Karl Wessel </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a63f15a3fb6da788dbaaeb8b1ee5470f2"></a><!-- doxytag: member="ConstantSimpleConstMapping::constClone" ref="a63f15a3fb6da788dbaaeb8b1ee5470f2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00058.html">ConstMapping</a>* ConstantSimpleConstMapping::constClone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>creates a clone of this mapping. </p>
<p>This method has to be implemented by every subclass. </p>

<p>Implements <a class="el" href="a00194.html#a49da397ee4ea25a6bdcf7f08dc6e2ed5">SimpleConstMapping</a>.</p>
<div class="fragment"><pre class="fragment">                                    {
    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a00055.html" title="Represents a constant mathematical mapping (f(x) = c)">ConstantSimpleConstMapping</a>(<a class="code" href="a00058.html#a009539b72014b7bed96402a5c244fca5" title="The dimensions of this mappings domain.">dimensions</a>, value);
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a64ad8ca116f9a3f0ea575954f43a6706"></a><!-- doxytag: member="ConstantSimpleConstMapping::getValue" ref="a64ad8ca116f9a3f0ea575954f43a6706" args="(const Argument &amp;) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual argument_value_t ConstantSimpleConstMapping::getValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the value of the mapping at the passed position. </p>
<p>This method has to be implemented by every subclass and should only have constant complexity. </p>

<p>Implements <a class="el" href="a00194.html#aeb10c744b8f4c6df092332b6228e209e">SimpleConstMapping</a>.</p>

<p>Referenced by <a class="el" href="a00148.html#a1fbdfd6bd7d903fdd388556ead454461">MultiDimMapping&lt; Linear &gt;::createSubSignal()</a>, <a class="el" href="a00148.html#a21647d49bf4759d7e1eac552fa518b43">MultiDimMapping&lt; Linear &gt;::MultiDimMapping()</a>, and <a class="el" href="a00148.html#adf3d7e794c6e10795a4fa18d6e3b67d0">MultiDimMapping&lt; Linear &gt;::operator=()</a>.</p>
<div class="fragment"><pre class="fragment">                                                           {
    <span class="keywordflow">return</span> value;
  }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/<a class="el" href="a00300_source.html">MappingUtils.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00055.html">ConstantSimpleConstMapping</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:31 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
